home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / gateway.idb / usr / WebFace / lib / S75pppstartup.z / S75pppstartup
Encoding:
Text File  |  1997-07-30  |  1.2 KB  |  45 lines

  1. #! /sbin/sh
  2. #
  3. # S75pppstartup
  4. #
  5. # Copyright 1988-1996 Silicon Graphics, Inc.
  6. # All rights reserved.
  7. #
  8. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  9. # the contents of this file may not be disclosed to third parties, copied or
  10. # duplicated in any form, in whole or in part, without the prior written
  11. # permission of Silicon Graphics, Inc.
  12. #
  13. # RESTRICTED RIGHTS LEGEND:
  14. # Use, duplication or disclosure by the Government is subject to restrictions
  15. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  16. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  17. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  18. # rights reserved under the Copyright Laws of the United States.
  19. #
  20. # $Id: S75pppstartup,v 1.3 1997/05/01 22:02:01 shotes Exp $
  21.  
  22. case "$1" in
  23. 'start')
  24.     if test -r /etc/config/ppp.startup ;then
  25.         IS_ON=/sbin/chkconfig
  26.         if $IS_ON verbose ; then
  27.             REDIRECT=
  28.         else
  29.             REDIRECT='>/dev/null 2>&1'
  30.         fi
  31.         eval /bin/sh /etc/config/ppp.startup $REDIRECT
  32.     fi
  33.     exit 0
  34.     ;;
  35. 'stop')
  36.     # Stop all ppp processes
  37.     killall 15 ppp
  38.     exit 0
  39.     ;;
  40.  
  41. *)
  42.     echo "usage: $0 {start|stop}"
  43.     ;;
  44. esac
  45.